import request from '@/utils/request'

export default {

    //用户登陆
    login(data) {
        return request({
            method: 'POST',
            url: '/userservice/user-info/login',
            headers: {
                'Content-Type': 'application/json'
            },
            data: data
        }).then(res => res.data)
    },

    //根据token获取用户信息
    getLoginInfo() {

        return request({

            url: `/userservice/user-info/getUserInfoByToken`,
            method: 'GET'
            // headers: {'token': cookie.get('guli_token')}
        })
        //headers: {'token': cookie.get('guli_token')}

    },
    //微信登录二维码
    // login() {

    //     return request({

    //         url: "/api/ucenter/wx/login",
    //         method: 'get',
    //         // headers: {'token': cookie.get('guli_token')}
    //     })
    //     //headers: {'token': cookie.get('guli_token')}

    // },
}
